package br.com.edil.webservice.endpoint;

import javax.xml.parsers.ParserConfigurationException;

import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
import org.springframework.ws.server.endpoint.annotation.ResponsePayload;
import org.w3c.dom.DOMException;
import org.w3c.dom.Element;

@Endpoint
public class CallIncrement {
	
	/**
	 * Namespace of both request and response.
	 */
	public static final String NAMESPACE_URI = "http://www.edilto.com.br/spring-ws/exemplo";

	/**
	 * The local name of the expected request.
	 */
	public static final String MSG_REQUEST_LOCAL_NAME = "callIncrementRequest";

	/**
	 * The local name of the created response.
	 */
	public static final String MSG_RESPONSE_LOCAL_NAME = "callIncrementResponse";
	
	@PayloadRoot(localPart = MSG_REQUEST_LOCAL_NAME, namespace = NAMESPACE_URI)
	@ResponsePayload
	public Element handleEchoRequest(@RequestPayload Element requestElement) throws ParserConfigurationException, DOMException {
		return null;
	}

}
